package com.zzh.core;

import android.app.Application;
import android.net.Network;

import com.zzh.lib.core.HLibrary;
import com.zzh.lib.core.utils.LogUtils;
import com.zzh.lib.core.wifi.NetworkWatchCallback;

/**
 * Created by ZZH on 2020/12/1.
 *
 * @Date: 2020/12/1
 * @Email: zzh_hz@126.com
 * @QQ: 1299234582
 * @Author: zzh
 * @Description:
 */
public class CoreApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        HLibrary.getInstance().init(this);
        HLibrary.setDebug(true);
        HLibrary.getInstance().registerWatchNetwork(new NetworkWatchCallback() {
            @Override
            public void onNetworkAvailable(Network network) {
                /**
                 * Transports: WIFI
                 * Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED
                 * Unwanted:  LinkUpBandwidth>=1048576Kbps LinkDnBandwidth>=1048576Kbps SignalStrength: -56
                 * ]
                 */
                LogUtils.e("---------------");
            }
        });
    }
}
